//---------------------------------------------------------------------------
#pragma hdrstop
#pragma hdrstop

#include "MyVLGenericFilter.h"
#pragma link "VLCommonFilter"
#pragma link "VLGenericFilter"
#pragma package(smart_init)
//---------------------------------------------------------------------------
// ValidCtrCheck is used to assure that the components created do not have
// any pure virtual functions.
//

static inline void ValidCtrCheck(TMyVLGenericFilter *)
{
	new TMyVLGenericFilter(NULL);
}
//---------------------------------------------------------------------------
namespace Myvlgenericfilter
{
	void __fastcall PACKAGE Register()
	{
		TComponentClass classes[1] = {__classid(TMyVLGenericFilter)};
		RegisterComponents("VL AddOns", classes, 0);
	}
}
//---------------------------------------------------------------------------
__fastcall TMyVLGenericFilter::TMyVLGenericFilter(TComponent* Owner)
        : TVLGenericFilter(Owner)
{
  OnFinished = new TEvent(NULL/*evtl. ueberarbeiten*/, false, false,"",false ); //neu 1 Par mehr
//	OnFinished = new TEvent(NULL/*evtl. ueberarbeiten*/, false, false,"" );// BCB5
}
__fastcall TMyVLGenericFilter::~TMyVLGenericFilter()
{
	OnFinished ->Free();
}
//---------------------------------------------------------------------------
void TMyVLGenericFilter::Initialize (long aFirstFrame, long aLastFrame)
{
	Processing = false;
	FirstFrame = aFirstFrame;
	ActFrame = 0;  //Bis Vorlauf besser 20080616
	LastFrame = aLastFrame;
}
//---------------------------------------------------------------------------
void TMyVLGenericFilter::SetDSPlayer (TVLDSVideoPlayer *aDSPlayer)
{
	DSPlayer = aDSPlayer;
}
//---------------------------------------------------------------------------
void TMyVLGenericFilter::SetProcessingStopped (TEvent *aProcessingStopped)
{
	ProcessingStopped = aProcessingStopped;
}
//---------------------------------------------------------------------------
